package model

import (
	"time"
)

type Role struct {
	RoleId int64 `xorm:"pk autoincr"`
	RoleName string
	CreatedAt time.Time
  	UpdatedAt time.Time
}

func (r *Role)QueryRoleById(rId int64) *Role{
	role := new(Role)
	x.Id(rId).Get(role)
	return role
}